Skip to content

Conversation

@schilling40
Copy link
Contributor

This PR is the initial script for affine transformation of training data. It supports either scaling (s<=1) or rotation (in format of Euler angles).
WIP

offset = [t_vec[0][0], t_vec[1][0], t_vec[2][0]]

if label_flag:
result = scipy.ndimage.affine_transform(data, rot_matrix, order=0, offset=offset, prefilter=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is changing the return type?
You can fix that like this:

result = scipy.ndimage.affine_transform(data, rot_matrix, order=0, offset=offset, prefilter=False).astype(data.dtype)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants